<?php
/**
 * @version		$Id: blog.php 17187 2010-05-19 11:18:22Z infograf768 $
 * @package		Joomla.Site
 * @subpackage	Templates.beez5
 * @copyright	Copyright (C) 2005 - 2009 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$templateparams =$app->getTemplate(true)->params;

JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
$cparams =& JComponentHelper::getParams('com_media');

// If the page class is defined, add to class as suffix.
// It will be a separate class if the user starts it with a space
?>
<h1 class="h2-cate"><?php echo $this->category->title;?></h1>
<div class="bg-title"></div>
<ul class="news">
  <?php foreach($this->items as $item) : ?>
  <li>
     <?php if ($item->image != ""):  ?>
    <div class="list-image">
      <a href="<?php echo $item->link; ?>">
            <?php echo $item->image; ?>
            <?php if ($this->params->get('show_icons', 1)) : ?>
            <span class="catHover"></span>
            <?php endif; ?>
      </a>
    </div>
    
    <div class="list-content">
        <h2><a href="<?php echo $item->link; ?>" title=""><?php echo $item->title; ?></a></h2>
      <p class="display-intro"><?php echo $item->introtext; ?></p>
      <?php if ($this->params->get('show_readmore', 1)) : ?>
      <span class="more"><a href="<?php echo $item->link; ?>" title="" class="a-more"><?php echo JText::_('READMORE'); ?></a></span>    
      <?php endif; ?>
    </div>
    <?php else: ?>  
    <div class="only-list-content">
        <h2><a href="<?php echo $item->link; ?>" title=""><?php echo $item->title; ?></a></h2>
      <p class="display-intro"><?php echo $item->introtext; ?></p>
      <?php if ($this->params->get('show_readmore', 1)) : ?>
      <span class="more"><a href="<?php echo $item->link; ?>" title="" class="a-more"><?php echo JText::_('READMORE'); ?></a></span>    
      <?php endif; ?>
    </div>
    <?php endif; ?>
    </li>
   <?php endforeach; ?>
</ul>
<?php if (($this->params->def('show_pagination', 1) == 1  || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?>
		<div class="list-item-more">
      <?php echo $this->pagination->getPagesLinks(); ?>
		</div>
<?php  endif; ?>
